<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>忘记密码 - 在线考试系统</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
</head>
<body>
    <div class="container">
        <h1 class="text-center">忘记密码</h1>
        <form action="/forgot_password" method="POST">
            <div class="form-group">
                <label for="user_type" class="form-label">选择身份:</label>
                <select class="form-control" name="user_type" id="user_type" required>
                    <option value="" disabled selected>请选择身份</option>
                    <option value="teacher">老师</option>
                    <option value="student">学生</option>
                    <option value="parent">家长</option>
                </select>
            </div>
            <div class="form-group">
                <label for="username" class="form-label">用户名:</label>
                <input type="text" id="username" name="username" class="form-control" placeholder="请输入您的用户名" required>
            </div>
            <div class="form-group">
                <label for="new_password" class="form-label">新密码:</label>
                <input type="password" id="new_password" name="new_password" class="form-control" placeholder="请输入新密码" required>
            </div>
            <button type="submit" class="btn btn-primary w-100">重置密码</button>
        </form>
    </div>
</body>
</html>
